gradle 설정 꼬임 현상 수정
This commit is contained in:
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -4,10 +4,12 @@
|
||||
<option name="filePathToZoomLevelMap">
|
||||
<map>
|
||||
<entry key="..\:/QTagger/QTagger2/app/src/main/res/drawable/spinner_background.xml" value="0.5255" />
|
||||
<entry key="..\:/QTagger/QTagger2/app/src/main/res/drawable/tablelayout_background.xml" value="0.46" />
|
||||
<entry key="..\:/QTagger/QTagger2/app/src/main/res/font/font.xml" value="0.5828125" />
|
||||
<entry key="..\:/QTagger/QTagger2/app/src/main/res/layout/activity_account_add.xml" value="0.33" />
|
||||
<entry key="..\:/QTagger/QTagger2/app/src/main/res/layout/activity_account_list.xml" value="0.4114583333333333" />
|
||||
<entry key="..\:/QTagger/QTagger2/app/src/main/res/layout/activity_main.xml" value="0.5536458333333333" />
|
||||
<entry key="..\:/QTagger/QTagger2/app/src/main/res/layout/activity_test.xml" value="0.396875" />
|
||||
<entry key="..\:/QTagger/QTagger2/app/src/main/res/xml/spinner_background.xml" value="0.5526041666666667" />
|
||||
</map>
|
||||
</option>
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.QTagger"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".test"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".Activity.AccountAdd"
|
||||
android:exported="false" />
|
||||
|
||||
@@ -1,16 +1,44 @@
|
||||
package com.qtagger.Activity;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.room.Room;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.widget.ScrollView;
|
||||
import android.widget.TableLayout;
|
||||
import android.widget.TableRow;
|
||||
|
||||
import com.qtagger.Database.Account;
|
||||
import com.qtagger.Database.AppDatabase;
|
||||
import com.qtagger.R;
|
||||
|
||||
public class AccountList extends AppCompatActivity {
|
||||
import java.util.List;
|
||||
|
||||
public class AccountList extends AppCompatActivity {
|
||||
ScrollView scrollView;
|
||||
TableLayout tableLayout;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_account_list);
|
||||
|
||||
scrollView = (ScrollView)findViewById(R.id.scrollview_AccountList);
|
||||
tableLayout = (TableLayout)findViewById(R.id.table_Account);
|
||||
|
||||
|
||||
//tableLayout.addView();
|
||||
|
||||
TableRow tableRow = new TableRow(this);
|
||||
tableRow.setLayoutParams(new TableLayout.LayoutParams());
|
||||
|
||||
|
||||
|
||||
AppDatabase db = Room.databaseBuilder(this,AppDatabase.class,"AccountDB").allowMainThreadQueries().build();
|
||||
|
||||
//초기 데이터 세팅
|
||||
List<Account> accountList = db.accountDao().getAll();
|
||||
for (Account ac: accountList) {
|
||||
//계정 개수만큼 추가
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,9 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
mSpinner = findViewById(R.id.spinner_account);
|
||||
|
||||
Intent intent = new Intent(getApplicationContext(), test.class);
|
||||
startActivity(intent);
|
||||
|
||||
//로그인
|
||||
findViewById(R.id.button_login).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
||||
16
app/src/main/java/com/qtagger/test.java
Normal file
16
app/src/main/java/com/qtagger/test.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package com.qtagger;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class test extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_test);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
BIN
app/src/main/res/drawable/edit_modify_icon_icons_com.png
Normal file
BIN
app/src/main/res/drawable/edit_modify_icon_icons_com.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 361 B |
24
app/src/main/res/drawable/tablelayout_background.xml
Normal file
24
app/src/main/res/drawable/tablelayout_background.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<!-- #f5f5f5" 색으로 채움 -->
|
||||
<solid
|
||||
android:color="#CFD9FB"/>
|
||||
<corners
|
||||
android:bottomLeftRadius="12dp"
|
||||
android:bottomRightRadius="12dp"
|
||||
android:topLeftRadius="12dp"
|
||||
android:topRightRadius="12dp" />
|
||||
<padding
|
||||
android:left="10dp"
|
||||
android:bottom="10dp"
|
||||
android:right="10dp"
|
||||
android:top="15dp"
|
||||
/>
|
||||
<!-- 1dp 크기의 #000000 색 테두리 -->
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#000000"/>
|
||||
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/trash_bin_icon_icons_com_67981.png
Normal file
BIN
app/src/main/res/drawable/trash_bin_icon_icons_com_67981.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 561 B |
@@ -5,4 +5,59 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".Activity.AccountList"/>
|
||||
tools:context=".Activity.AccountList">
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:background="#000000"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textViewAccountAccTitle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewAccountAccTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="사용자 목록"
|
||||
android:textAlignment="center"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:id="@+id/imageFilterButton_Back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="#FFFFFF"
|
||||
android:minWidth="48dp"
|
||||
android:minHeight="48dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/back_arrow_5821"
|
||||
tools:ignore="SpeakableTextPresentCheck" />
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/scrollview_AccountList"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="64dp"
|
||||
android:layout_weight="1"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="SpeakableTextPresentCheck">
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/table_Account"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</ScrollView>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
353
app/src/main/res/layout/activity_test.xml
Normal file
353
app/src/main/res/layout/activity_test.xml
Normal file
@@ -0,0 +1,353 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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:background="#F1F3FA"
|
||||
tools:context=".test">
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:ignore="MissingConstraints">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<TableLayout
|
||||
android:id="@+id/tableLayout"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="150dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginEnd="40dp"
|
||||
android:background="@drawable/tablelayout_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
|
||||
<TableRow
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="210dp"
|
||||
android:layout_height="40dp"
|
||||
android:text=" User001"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/edit_modify_icon_icons_com" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/trash_bin_icon_icons_com_67981" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
|
||||
android:text=" 김철수"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:text=" 개발팀"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<TableRow
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</TableLayout>
|
||||
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tableLayout2"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="150dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="40dp"
|
||||
android:background="@drawable/tablelayout_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tableLayout">
|
||||
|
||||
|
||||
<TableRow
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="210dp"
|
||||
android:layout_height="40dp"
|
||||
android:text=" User001"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/edit_modify_icon_icons_com" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/trash_bin_icon_icons_com_67981" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
|
||||
android:text=" 김철수"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:text=" 개발팀"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</TableLayout>
|
||||
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tableLayout3"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="150dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="40dp"
|
||||
android:background="@drawable/tablelayout_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tableLayout2">
|
||||
|
||||
|
||||
<TableRow
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="210dp"
|
||||
android:layout_height="40dp"
|
||||
android:text=" User001"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/edit_modify_icon_icons_com" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/trash_bin_icon_icons_com_67981" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
|
||||
android:text=" 김철수"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:text=" 개발팀"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</TableLayout>
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tableLayout4"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="150dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="40dp"
|
||||
android:background="@drawable/tablelayout_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tableLayout2">
|
||||
|
||||
|
||||
<TableRow
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="210dp"
|
||||
android:layout_height="40dp"
|
||||
android:text=" User001"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/edit_modify_icon_icons_com" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/trash_bin_icon_icons_com_67981" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
|
||||
android:text=" 김철수"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:text=" 개발팀"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</TableLayout>
|
||||
|
||||
<TableLayout
|
||||
android:id="@+id/tableLayout5"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="150dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="40dp"
|
||||
android:background="@drawable/tablelayout_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tableLayout2">
|
||||
|
||||
|
||||
<TableRow
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="210dp"
|
||||
android:layout_height="40dp"
|
||||
android:text=" User001"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/edit_modify_icon_icons_com" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterButton
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:background="#00ff0000"
|
||||
android:src="@drawable/trash_bin_icon_icons_com_67981" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
|
||||
android:text=" 김철수"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:text=" 개발팀"
|
||||
android:textColor="#000000"
|
||||
android:textSize="24sp" />
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</TableLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -2,12 +2,6 @@
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.QTagger" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_700</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<!-- Status bar color. -->
|
||||
|
||||
Reference in New Issue
Block a user