Skip to content

Commit ed63cd9

Browse files
wintmainwosys
authored andcommitted
[wBasis][refactor]Redefine files' structure
1 parent c1b831e commit ed63cd9

24 files changed

+61
-42
lines changed

app-catalog/samples/wBasis/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ android {
99
res.srcDirs(
1010
'src/main/res',
1111
'src/main/res-ext',
12+
'src/main/res-gesture',
1213
'src/main/res-transition',
1314
)
1415
}

app-catalog/samples/wBasis/src/main/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@
6060

6161
<!-- recyclerview START-->
6262
<activity
63-
android:name=".ui.views.recyclerview.RecyclerViewActivity"
63+
android:name=".ui.recyclerview.RecyclerViewActivity"
6464
android:exported="true"
6565
android:theme="@style/Theme.AppCompat.DayNight" />
6666
<!-- recyclerview END-->
6767

6868
<!-- gesture detect START-->
6969
<activity
70-
android:name=".ui.views.gesture.GestureDetectActivity"
70+
android:name=".gesture.GestureDetectActivity"
7171
android:exported="true"
7272
android:theme="@style/Theme.AppCompat.DayNight" />
7373
<!-- gesture detect END-->
7474

7575
<!-- slidingpanelayout START-->
76-
<activity android:name=".ui.views.layout.slidingpanelayout.SlidingPaneLayoutMain"
76+
<activity android:name=".ui.layout.slidingpanelayout.SlidingPaneLayoutMain"
7777
android:theme="@style/Theme.AppCompat.DayNight"
7878
android:exported="true">
7979
</activity>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.wintmain.wBasis.ui.views.gesture
17+
package com.wintmain.wBasis.gesture
1818

1919
import android.graphics.Color
2020
import android.os.Bundle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.wintmain.wBasis.ui.views.gesture
17+
package com.wintmain.wBasis.gesture
1818

1919
import android.annotation.SuppressLint
2020
import android.os.Bundle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.wintmain.wBasis.ui.views.gesture
17+
package com.wintmain.wBasis.gesture
1818

1919
import android.os.Build.VERSION
2020
import android.view.GestureDetector.SimpleOnGestureListener
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.wintmain.wBasis.ui.views.layout
17+
package com.wintmain.wBasis.ui.layout
1818

1919
import android.os.Bundle
2020
import android.view.View
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.wintmain.wBasis.ui.views.layout.slidingpanelayout
17+
package com.wintmain.wBasis.ui.layout.slidingpanelayout
1818

1919
import android.os.Bundle
2020
import android.view.LayoutInflater
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.wintmain.wBasis.ui.views.layout.slidingpanelayout
17+
package com.wintmain.wBasis.ui.layout.slidingpanelayout
1818

1919
import android.os.Bundle
2020
import androidx.appcompat.app.AppCompatActivity
@@ -39,7 +39,7 @@ import com.wintmain.wBasis.databinding.SlidingPanelMainBinding
3939
documentation = "",
4040
tags = ["android-samples", "layout"],
4141
)
42-
class SlidingPaneLayoutMain : AppCompatActivity() {
42+
class SlidingPaneLayoutMain : androidx.appcompat.app.AppCompatActivity() {
4343

4444
private lateinit var appBarConfiguration: AppBarConfiguration
4545

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.wintmain.wBasis.ui.views.layout.slidingpanelayout
16+
package com.wintmain.wBasis.ui.layout.slidingpanelayout
1717

1818
import com.wintmain.wBasis.R
1919

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.wintmain.wBasis.ui.views.layout.slidingpanelayout
17+
package com.wintmain.wBasis.ui.layout.slidingpanelayout
1818

1919
import android.content.Context
2020
import android.view.LayoutInflater
@@ -24,10 +24,10 @@ import androidx.recyclerview.widget.ListAdapter
2424
import androidx.recyclerview.widget.RecyclerView
2525
import coil.load
2626
import com.wintmain.wBasis.databinding.SportsListItemBinding
27-
import com.wintmain.wBasis.ui.views.layout.slidingpanelayout.SportsAdapter.SportsViewHolder
27+
import com.wintmain.wBasis.ui.layout.slidingpanelayout.SportsAdapter.SportsViewHolder
2828

2929
class SportsAdapter(private val onItemClicked: (Sport) -> Unit) :
30-
ListAdapter<Sport, SportsViewHolder>(DiffCallback) {
30+
androidx.recyclerview.widget.ListAdapter<Sport, SportsViewHolder>(DiffCallback) {
3131

3232
private lateinit var context: Context
3333

0 commit comments

Comments
 (0)