You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
4.9 KiB

6 years ago
drawable<EFBFBD><EFBFBD>ͼƬ<EFBFBD><EFBFBD>
ͼƬ<EFBFBD><EFBFBD>׺0<EFBFBD><EFBFBD>ʾδѡ<EFBFBD><EFBFBD>״̬<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>ʾѡ<EFBFBD><EFBFBD>״̬
layout<EFBFBD><EFBFBD>ҳ<EFBFBD>
index<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ
find<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
message<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
my<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD>
record:¼<><C2BC>
<EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><EFBFBD>֣<EFBFBD>
<LinearLayout
android:orientation="vertical"/>
app<EFBFBD><EFBFBD><EFBFBD>
android:theme="@style/Theme.AppCompat.Light.NoActionBar" >
app<EFBFBD><EFBFBD><EFBFBD>֣<EFBFBD><EFBFBD><EFBFBD>֮<EFBFBD>
wrap_content<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԫ<EFBFBD>ؽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸı<EFBFBD><EFBFBD><EFBFBD>С
fill_parent <20><><EFBFBD>Ȼ<EFBFBD><C8BB>߸߶Ȳ<DFB6><C8B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ
match_parentǿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С<EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD><EFBFBD>ؼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><EFBFBD>
colors.xml<6D><6C><EFBFBD><EFBFBD>ɫ
string.xml:<3A>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD>
styles.xml:<3A>ⲿ<EFBFBD><E2B2BF>ʽ
<EFBFBD>޸<EFBFBD>Android appͼ<70><CDBC>(Android Studio)
1. @res\drawable <20><><EFBFBD><EFBFBD>icon.png(<28><>ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>޸ĵ<DEB8>ͼ<EFBFBD><CDBC>);
2.<2E>޸<EFBFBD>AndroidManifest.xml <20><>@android:icon="@drawable/icon"
3. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC>ɡ<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(horizontal line)
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@android:color/white"/>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(vertical line)
<View
android:layout_width="1dp"
android:layout_height="fill_parent"
android:background="@android:color/white"/>
<EFBFBD>ı<EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><EFBFBD>
.<2E><>activity_main.xml<6D><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>䣬ע<E4A3AC><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD>ã<EFBFBD>/drawable/+ͼƬ<CDBC><C6AC><EFBFBD>ơ<EFBFBD>
android:background="@drawable/backimg"
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>activity_main.xml<6D><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>£<EFBFBD>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:paddingTop="0dp"
android:paddingBottom="0dp" tools:context=".MainActivity"
android:background="@drawable/backimg"
>
<TextView
android:text="hello,world!"
android:textSize="50dp"
android:textColor="#FFFFFF"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</RelativeLayout>
Activity<EFBFBD><EFBFBD>
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><EFBFBD>
<TextView
style="@style/textstyle"
android:layout_height="47dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:gravity="center"
android:text="@string/login"
android:textColor="#62b9b3"
android:textSize="15sp"
app:layout_constraintBottom_toTopOf="@+id/editPhone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
tools:ignore="MissingConstraints" />
ע<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<TextView
android:id="@+id/tvShowDialog"
android:layout_width="173dp"
android:layout_height="33dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:gravity="center"
android:text="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.502"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editPwd" />
<TableRow
android:id="@+id/tableRow"
android:layout_width="282dp"
android:layout_height="38dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.636"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvShowDialog">
<TextView
android:layout_width="91dp"
android:layout_height="20dp"
android:layout_marginTop="8dp"
android:text="<22>Ա<EFBFBD><D4B1><EFBFBD>" />
</TableRow>
<RadioGroup
android:id="@+id/rg"
android:layout_gravity="center_horizontal"
android:orientation="horizontal">
<RadioButton
android:id="@+id/male"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="<22><>" />
<RadioButton
android:id="@+id/famle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="Ů" />
</RadioGroup>