summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2023-04-13 23:53:48 +0200
committerTomasz Kramkowski <tomasz@kramkow.ski>2023-04-14 03:12:14 +0200
commitdb091bfd1db36ab66340ccad2eb7b6393a0aa3da (patch)
tree5a70412afcb4d32086effffe84d7de3161790f46 /res
parente27870b137aeab108816f4eb80ddaea1e639c3fb (diff)
downloadandroid-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.tar.gz
android-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.tar.xz
android-jetpack-compose-redo-db091bfd1db36ab66340ccad2eb7b6393a0aa3da.zip
Basic kotlin java application working
Diffstat (limited to 'res')
-rw-r--r--res/layout/activity_main.xml42
-rw-r--r--res/values/strings.xml9
-rw-r--r--res/values/styles.xml6
3 files changed, 57 insertions, 0 deletions
diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml
new file mode 100644
index 0000000..0807716
--- /dev/null
+++ b/res/layout/activity_main.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:orientation="vertical"
+>
+ <RadioGroup
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ >
+ <RadioButton
+ android:id="@+id/radio_post"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/POST"
+ />
+ <RadioButton
+ android:id="@+id/radio_put"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/PUT"
+ />
+ </RadioGroup>
+ <!--<Button-->
+ <!--android:id="@+id/button_choose_file"-->
+ <!--android:layout_width="match_parent"-->
+ <!--android:layout_height="wrap_content"-->
+ <!--android:text="@string/submit"-->
+ <!--/>-->
+ <Button
+ android:id="@+id/button_submit"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/submit"
+ />
+</LinearLayout>
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644
index 0000000..c215c34
--- /dev/null
+++ b/res/values/strings.xml
@@ -0,0 +1,9 @@
+<resources>
+ <string name="app_name">Paste</string>
+ <string name="menu_settings">Settings</string>
+ <string name="title_activity_main">MainActivity</string>
+ <string name="content_hint">Content</string>
+ <string name="submit">Submit</string>
+ <string name="PUT">PUT</string>
+ <string name="POST">POST</string>
+</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
new file mode 100644
index 0000000..96fe7ee
--- /dev/null
+++ b/res/values/styles.xml
@@ -0,0 +1,6 @@
+<resources>
+ <style name="app_style" parent="@android:style/Theme.Light">
+ <item name="android:windowActionBar">true</item>
+ <item name="android:windowNoTitle">true</item>
+ </style>
+</resources>