-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gunhappy
committed
Feb 27, 2016
1 parent
4ae0aea
commit 45fda7f
Showing
15 changed files
with
153 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/minitrello/minitrello/activities/CreateMenu.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.minitrello.minitrello.activities; | ||
|
||
import android.app.Activity; | ||
import android.os.Bundle; | ||
import android.util.DisplayMetrics; | ||
|
||
import com.minitrello.minitrello.R; | ||
|
||
/** | ||
* Created by พศิน on 27/2/2559. | ||
*/ | ||
public class CreateMenu extends Activity{ | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
setContentView(R.layout.createwindow); | ||
|
||
DisplayMetrics dm = new DisplayMetrics(); | ||
getWindowManager().getDefaultDisplay().getMetrics(dm); | ||
|
||
int width = dm.widthPixels; | ||
int height = dm.heightPixels; | ||
|
||
getWindow().setLayout((int)(width*.8),(int)(height*.6)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../java/com/minitrello/minitrello/Card.java → app/src/main/java/models/Card.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.minitrello.minitrello; | ||
package models; | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package models; | ||
|
||
/** | ||
* Created by พศิน on 27/2/2559. | ||
*/ | ||
public class ListCard { | ||
private String title; | ||
|
||
public ListCard(String title){ | ||
this.title = title; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.title; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package models; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* Created by พศิน on 27/2/2559. | ||
*/ | ||
public class Storage { | ||
|
||
private List<ListCard> savedListCards; | ||
|
||
private static Storage instance; | ||
|
||
private Storage(){ | ||
savedListCards = new ArrayList<ListCard>(); | ||
} | ||
|
||
public static Storage getInstance(){ | ||
if(instance==null)instance = new Storage(); | ||
return instance; | ||
} | ||
|
||
public void saveListCard(ListCard listCard){ | ||
savedListCards.add(listCard); | ||
} | ||
|
||
public List<ListCard> loadListCard(){ | ||
return savedListCards; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" android:layout_height="match_parent" | ||
android:background="#f00404"> | ||
|
||
<EditText | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/title" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="123dp" | ||
android:hint="Input Title name" | ||
android:textSize="@android:dimen/app_icon_size" /> | ||
|
||
<Button | ||
android:id="@+id/confirm_btn" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Confirm" | ||
android:layout_alignParentBottom="true" | ||
android:layout_centerHorizontal="true" | ||
|
||
/> | ||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include ':app' | ||
include ':app' |