Теперь я продолжаю с моими расширениями FrameLayout
.Как объявить linearlayout в FrameLayout
Как я могу объявить LinearLayout
в этом классе.
Для например: LinearLayout followButton =(LinearLayout) findViewById(R.id.transperent);
в обычном классе активность, как я могу это сделать в классе ниже
Public class MyActivity extends FrameLayout {
}
> main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/transperent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TextView
android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
Если кто-нибудь есть идеи по этому поводу пожалуйста, помогите друзьям.
Для чего вам нужно сделать это? – Stanislav
Я хочу дать целое linearlayout ссылку id, подобную этой android: id = "@ + id/transperent", чтобы изменить уровень непрозрачности. – Vicky
, чтобы внести некоторые изменения в мой макет. – Vicky