parent
99e519edbc
commit
665d708e54
@ -1,47 +0,0 @@ |
||||
package com.keylesspalace.tusky.db; |
||||
|
||||
import android.arch.persistence.room.ColumnInfo; |
||||
import android.arch.persistence.room.Entity; |
||||
import android.arch.persistence.room.ForeignKey; |
||||
import android.arch.persistence.room.PrimaryKey; |
||||
|
||||
/** |
||||
* Media model |
||||
*/ |
||||
|
||||
@Entity(foreignKeys = @ForeignKey(entity = TootEntity.class, |
||||
parentColumns = "uid", |
||||
childColumns = "toot_id")) |
||||
public class MediaEntity { |
||||
@ColumnInfo(name = "toot_id") |
||||
private int toot_id; |
||||
@PrimaryKey(autoGenerate = true) |
||||
private int uid; |
||||
@ColumnInfo(name = "url") |
||||
private String url; |
||||
|
||||
// getter setter
|
||||
public int getToot_id() { |
||||
return toot_id; |
||||
} |
||||
|
||||
public void setToot_id(int toot_id) { |
||||
this.toot_id = toot_id; |
||||
} |
||||
|
||||
public int getUid() { |
||||
return uid; |
||||
} |
||||
|
||||
public void setUid(int uid) { |
||||
this.uid = uid; |
||||
} |
||||
|
||||
public String getUrl() { |
||||
return url; |
||||
} |
||||
|
||||
public void setUrl(String url) { |
||||
this.url = url; |
||||
} |
||||
} |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 29 KiB |
@ -1,14 +1,11 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<item> |
||||
<bitmap |
||||
android:src="@drawable/splash_pattern" |
||||
android:tileMode="repeat" /> |
||||
<color android:color="@color/color_primary_dark_dark"/> |
||||
</item> |
||||
<item> |
||||
<bitmap |
||||
android:src="@mipmap/ic_logo" |
||||
android:gravity="center" |
||||
android:tileMode="disabled" /> |
||||
android:src="@drawable/splash" |
||||
android:gravity="center" /> |
||||
</item> |
||||
</layer-list> |
Before Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
Loading…
Reference in new issue